import { messagesRequest } from '@/utils/HttpRequest';

export async function findByMessagesPageList() {
  //SwaggerResources

  return messagesRequest.getList<API.Picture>('findByList');
}

export async function editMessages(params: API.TaoCanMaster) {
  return messagesRequest.post<any>('edit', params);
}

//Famous
export async function findByFamousPageList(params?: any) {
  //SwaggerResources

  return messagesRequest.getList<API.Picture>('findByFamousList', params);
}

export async function editFamous(params: API.TaoCanMaster) {
  return messagesRequest.post<any>('editFamous', params);
}
export async function stateFamous(id: any, state: number = 1) {
  return messagesRequest.post<any>('stateFamous?id=' + id + '&state=' + state, {
    id: id,
    state: state,
  });
}
